﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace QuanLyShopCD
{
    public partial class frm_mouse : Form
    {
        public frm_mouse()
        {
            InitializeComponent();
        }

        private void button1_MouseUp(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Left)
                MessageBox.Show("left");
            else
                if (e.Button == MouseButtons.Right)
                {
                    contextMenuStrip1.Show(this.button1,e.X,e.Y);
                }
        }

        private void contextMenuStrip1_Opening(object sender, CancelEventArgs e)
        {

        }

        private void frm_mouse_MouseDown(object sender, MouseEventArgs e)
        {
            if (e.Button == MouseButtons.Right)
                contextMenuStrip1.Show(this,e.X,e.Y);
        }

        private void button1_MouseDown(object sender, MouseEventArgs e)
        {

        }

        private void button1_MouseEnter(object sender, EventArgs e)
        {

          //  button1.Image = global::QuanLyShopCD.Properties.Resources.Abstheart;
        }

        private void button1_MouseLeave(object sender, EventArgs e)
        {
            //button1.Image = global::QuanLyShopCD.Properties.Resources.A_State_Of_Trance;
            
        }

        private void frm_mouse_MouseMove(object sender, MouseEventArgs e)
        {

        }

        private void r(object sender, MouseEventArgs e)
        {
            
        }

        private void frm_mouse_KeyPress(object sender, KeyPressEventArgs e)
        {
            MessageBox.Show(e.KeyChar.ToString());
        }

        private void textBox1_KeyPress(object sender, KeyPressEventArgs e)
        {
          //  MessageBox.Show(e.KeyChar.ToString());
        }

        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyValue == 13)
                MessageBox.Show(this.textBox1.Text);
        }
    }
}
